package com.ww.demo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import lombok.Data;

public class ListDemo {

	public static void main(String[] args) {
		String param = "[\"a\", \"bn\"]";
		Haha haha = new Haha();
		List<String> list = new ArrayList<>();
		list.addAll(JSONUtil.toList(param, String.class));
		haha.list = list;
		System.out.println(JSON.toJSONString(haha));
	}
}

@Data
class Haha {
	List<String> list;
}